{include file="top.html"}
<link rel="stylesheet" href="{$CSS_PATH}cart.css"/>
<!--detail Start-->
<div class="wrapper clearfix">
    <div class="container">
        <div class="cart-mian">
            <div class="step-tit">
                <h3>联系人和联系方式</h3>
            </div>
            <div class="addr-detail clearfix">
               <!-- <div class="address-item address-item-new">
                    <i class="iconfont"></i>
                        添加新地址
                </div>-->

                <!--<div class="address-item selected cur">
                    <dl>
                        <dt></dt>
                        <dd>
                            <label class="input-label" for="user_name">姓名 :</label>
                            <span class="change-username">{$user_info.user_name}</span>
                        </dd>
                        <dd>
                            <label class="input-label" for="user_name">手机：</label>
                            <span class="change-phone">{$user_info.phone}</span>
                        </dd>
                        <dd>
                            <label class="input-label" for="user_name">Q Q：</label>
                            <span class="change-qq">{$user_info.qq}</span>
                        </dd>
                        <dd>
                            <label class="input-label" for="user_name">邮箱:</label>
                            <span class="change-email">123456789@163.com</span>
                        </dd>
                    </dl>
                    <div class="closeSTB">
                    </div>
                </div>-->
                <div id="origin-address" class="address-item selected clearfix">
                    <dl>
                        <dt></dt>
                        <dd>
                        <label class="input-label" for="user_name">姓名 :</label>
                        <span class="change-username">{$user_info.user_name}</span>
                        </dd>
                        <dd>
                        <label class="input-label" for="user_name">手机：</label>
                        <span class="change-phone">{$user_info.phone}</span>
                        </dd>
                        <dd>
                        <label class="input-label" for="user_name">Q Q：</label>
                        <span class="change-qq">{$user_info.qq}</span>
                        </dd>
                        <dd>
                        <label class="input-label" for="user_name">邮箱:</label>
                        <span class="change-email">{$user_info.email}</span>
                        </dd>
                    </dl>
                     <b></b>
                    <div class="actions" style="display: none;">
                        <i class="iconfont">&#xe602;</i>
                        <a onclick="$('#origin-address').hide();$('#new-address').show()" href="javascript:void(0);" class="modify J_addressModify">编辑</a>
                    </div>

                </div>
                <div id="new-address" class="address-item selected" style="display: none;">
                    <div class="actions">
                        <span>
                        <i class="iconfont">&#xe601;</i>
                        <a onclick="changelinkman()" href="javascript:void(0);" class="save">保存</a>
                        </span>
                        <span>
                        <i class="iconfont">&#xe600;</i>
                        <a onclick="$('#new-address').hide();$('#origin-address').show()" href="javascript:void(0);" class="cancel">取消</a>
                        </span>
                    </div>
                    <dl id="change-box">
                        <dt></dt>
                        <dd>
                        <label class="input-label" for="user_name"><em>*</em>姓名 :</label>
                            <span class="change-phone">{$user_info.user_name}</span>
                        <!--<input class="input-input" id="change-username" name="changeusername" type="text" tabindex="2" onmouseover="" onmouseout="" value=""/>-->
                        </dd>
                        <dd>
                            <label class="input-label" for="user_name"><em>*</em>手机：</label>
                            <span class="change-phone">{$user_info.phone}</span>
                        </dd>
                        <dd>
                        <label class="input-label" for="user_name">Q Q：</label>
                        <input class="input-input" id="change-userqq" name="changeqq" type="text" tabindex="2" value="{$user_info.qq}"/>
                        </dd>
                        <dd>
                        <label class="input-label" for="user_name">邮箱:</label>
                        <input class="input-input" id="change-useremail" name="changeemail" type="text" tabindex="2"  value="{$user_info.email}"/>
                        </dd>
                    </dl>
                </div>
            </div>
            <div class="section-header clearfix">
                <h3>付款方式</h3>
            </div>
            <div class="tab clearfix">
                <div class="hd">
                    <ul>
                        <li class="active">
                          信用卡分期
                        </li>
                        <li>
                            在线支付
                        </li>
                        <li>
                           邮局汇款
                        </li>
                        <li>
                              门店付款
                        </li>
                    </ul>
                </div>
             
                <div class="curren cur">
                 {if $is_new eq ''} 
                    <p class="tab-min">
                        你分期，我买单
                    </p>
                {/if} 
                </div>
              
                <div class="curren ">
                   <div></div>
                </div>
                <div class="curren ">
                    <div class="message-box clearfix">
                        <p>
                            收款人户名：上海风创信息咨询有限公司
                        </p>
                        <p>
                            开户银行：中国农业银行上海市复旦支行
                        </p>
                        <p>
                            收款帐号：03485500040006091

                        </p>
                    </div>
                </div>
                <div class="curren ">
                    <div class="message-box clearfix">
                        <p>
                             海风教育门店地址:
                        </p>
                        <p class="cor666">
                            上海市黄浦区黄河路355号雅州大厦1号楼521室
                        </p>
                        <br/>
                        <p>
                            联系电话:
                        </p>
                        <p class="cor666">
                            021-5648365
                        </p>
                    </div>
                </div>
            </div>
             <!--购买课程 Start -->
            <div class="section-header">
                <h3>购买课程</h3>
                <div class="item-box clearfix">
                    <div class="p-img">
                        <a href="goods.php?id={$order_goods.goods_id}" target="_blank"><img src="{$goods.goods_thumb}"></a>
                    </div>
                    <div class="p-name">
                            <a  href="goods.php?id={$order_goods.goods_id}" target="_blank">{$goods.goods_name}</a>
                    </div>
                    <div class="goods-msg">
                        <p class="desc">
                            {foreach from=$goods_attr item=attr_val key=attr_key}
                           <span>{$attr_key}<em>{$attr_val} </em></span>
                            {/foreach}

                        </p>
                        <div class="p-price">
                            <strong class="cart-price">¥ {$amount}</strong>
                         </div>
                       
                    </div>
                </div>
            </div>
            <!--购买课程 End -->
            <!--购物明细 Start   -->
             <div class="section-count clearfix">
                 <div class="money-box" >
                        <ul>
                            <li class="clearfix">
                                <label>课程价格：</label>
                                <span class="val">￥{$amount}</span>
                            </li>
                          <!-- 
                            <li class="clearfix">
                                <label>优惠券：</label>
                                <span class="val">-0元</span>
                            </li> -->
                           
                            <li class="clearfix total-price">
                                <label>应付金额：</label>
                                <span class="val"><em id="J_totalPrice">￥{$amount}</em></span>
                            </li>
                        </ul>
                    </div>
                 
             </div>  
              <!--购物明细 Start   -->
             <div class="section-bar clearfix">
                <div class="fl">
                    <div class="seleced-address hide" id="J_confirmAddress">
                    </div>
                    <div class="big-pro-tip hide J_confirmBigProTip"></div>
                </div>
                <div class="fr">
                    <a href="?act=submit_order&goods_id={$goods_id}" class="btn btn-primary" >去结算  ></a>
                </div>
            </div>   
    </div>
</div>


 <script>
        $(function  () {

            $("#origin-address" ).mouseenter(function(){
                $(this ).find('.actions' ).show();
                $(this ).addClass('cur');
            } ).mouseleave(function(){
                $(this ).find('.actions' ).hide();
                $(this ).removeClass('cur');
            })


            $(".tab  li").click(function(event) {
                $(this).addClass("active").siblings().removeClass("active")
                var $key=$(this).index();
                $(this).parent().parent(".hd").siblings(".curren").eq($key).show().siblings(".curren").hide();
            })
        })
        function changelinkman()
        {
            var obj={};
            $("#change-box input" ).each(function(){
                obj[$(this).attr('name')]= $.trim($(this ).val());
            })
            $.post('user.php?act=change_linkman',obj,function(data){
                console.info(data)
                if(data.status=='false')
                {
                    if(data.error=='no_login'){
                        $("#login" ).show();
                    }else{
                        return alert(data.error);
                    }

                }else{
                    window.location.reload();
                }
            },'json')
        }
    </script>
{include file="foot.html"}

</body>
</html>